package org.smile.db;

import org.smile.db.jdbc.JdbcMapper;
import org.smile.db.handler.HumpKeyColumnSwapper;
import org.smile.db.jdbc.JdbcMapRecordDao;
import org.smile.db.jdbc.SimpleJdbcMapper;
import org.smile.db.jdbc.TableInfoCfg;

public interface ITable {
	
	TableInfoCfg TStudent=new TableInfoCfg("student").logicDeleteField("enable").keyColumnSwapper(HumpKeyColumnSwapper.instance).noUpdates("createTime").autoLongId();

	TableInfoCfg TScore=new TableInfoCfg("score").logicDeleteField("enable").keyColumnSwapper(HumpKeyColumnSwapper.instance).noUpdates("createTime").autoLongId();
	/**学生表*/
	JdbcMapper<Student> STUDENT=new SimpleJdbcMapper<Student>(Student.class,TStudent);

	JdbcMapper<Score> SCORE=new SimpleJdbcMapper<Score>(Score.class,TScore);
	
	
	JdbcMapRecordDao StudentDao=new JdbcMapRecordDao(TStudent);

	JdbcMapRecordDao ScoreDao=new JdbcMapRecordDao(TScore);
}
